package com.ks.product.feign;

import com.ks.product.model.request.ReqDecreaseStockDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "ks-product-server")
public interface ProductFeignClient {

    @PostMapping("/product/decreasing")
    Object decreaseStock(@RequestBody ReqDecreaseStockDto request);

}
